package org.example;


import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.context.annotation.Configuration;

import java.util.Date;


@Configuration
@EnableConfigurationProperties({Student.class})
@ComponentScan("org.example")
public class MyConfiguration {

    @Bean()
    public Date mystu() {
        return new Date();
    }
}
